const mongoose = require("mongoose");

const Users = mongoose.model("Users", {
  openid: {
    type: String,
    required: true, // 必填项
    unique: true, // 唯一的
  },
  nickname: {
    type: String,
    required: true,
    unique: true,
  },
  avatar: {
    type: String,
    default: "",
  },
});

module.exports = Users;
